package com.android.controller_bt;

import com.wangbl.manager.IManager;

import android.app.Activity;
import android.app.Dialog;
import android.os.Bundle;
import android.widget.Toast;

public class BaseActivity extends Activity {
	protected IManager manager;
	protected Dialog pd;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		manager = MainApplication.manager;
		pd = new Dialog(this, R.style.CustomProgressDialog);
		pd.setContentView(R.layout.progress_dialog);
	}
	
	protected void show(){
		pd.show();
	}
	
	protected void dismiss(){
		pd.dismiss();
	}
	
	protected void toast(String text){
		Toast.makeText(this, text, Toast.LENGTH_SHORT).show();
	}

}
